<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
    <form action="/user/tologin" method="post" >
        <table align="center" border="1px">
            <tr align="center">
                <th>登录名：</th>
                <td>
                    <input type="text" name="username" value="admin" required="required" placeholder="请输入登录名..." />
                </td>
            </tr>
            <tr align="center">
                <th>密&emsp;码：</th>
                <td>
                    <input type="password" name="password" value="123456" required="required" placeholder="请输入密码..." />
                </td>
            </tr>
            <tr align="center">
                <td colspan="2">
                    <input type="checkbox"  name="remember-me" value="true" />
                    <label>记住我</label>
                </td>
            </tr>
            <tr align="center">
                <td colspan="2">
                    <input type="hidden" th:value="${_csrf.token}" name="_csrf" th:if="${_csrf}"  />
                </td>
            </tr>
            <tr align="center">
                <td colspan="2">
                    <input type="submit"  value="登录" />
                    &emsp;&emsp;
                    <input type="reset"  value="重置" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>